package com.cheetah.start.module.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cheetah.start.module.system.domain.SysDictType;
import com.cheetah.start.module.system.mapper.SysDictTypeMapper;
import com.cheetah.start.module.system.service.SysDictTypeService;
import org.springframework.stereotype.Service;


/**
 * @author Feel
 * @create 2021/7/18
 **/
@Service
public class SysDictTypeServiceImpl extends ServiceImpl<SysDictTypeMapper, SysDictType> implements SysDictTypeService {

    @Override
    public SysDictType getByTypeCode(String typeCode) {
        QueryWrapper<SysDictType> wrapper = new QueryWrapper<>();
        wrapper.eq("type_code", typeCode);
        return getOne(wrapper);
    }
}
